﻿
@{
    ViewBag.Title = Resources.WebStringsWeb.WebTitle;
    Layout = "~/Views/Shared/_LayoutMobile.cshtml";
}

@section css {
    <link href="~/Assets/css/previewImage.css" rel="stylesheet" />
    <link href="~/Assets/css/mui.picker.min.css" rel="stylesheet" />
    <script src="~/Assets/js/mui.picker.js"></script>
    <script src="~/Assets/js/mui.picker.min.js"></script>
    <script src="~/Assets/js/mui.dtpicker.js"></script>
    <style>
        .mui-bar ~ .mui-content .mui-scroll-wrapper {
            top: 44px;
            height: auto;
        }

        .btn_addPic {
            display: block;
            position: relative;
            width: 53px;
            height: 53px;
            overflow: hidden;
            cursor: pointer;
            text-align: center;
        }

        .filePrew {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 53px;
            height: 53px;
            opacity: 0;
        }
    </style>
}
<header class="mui-bar mui-bar-nav">
    <button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left" style="color:white;">
        <span class="mui-icon mui-icon-left-nav" style=""></span>
    </button>
    <h1 class="mui-title" style="color:white;">应急疏散</h1>
</header>

<div class="mui-content">
    <div ng-cloak class="mui-content-padded" style="margin: 5px;" ng-controller="EmergencyController" ng-init="
     PlaceId='@(Request.QueryString["PlaceId"].IsEmpty() ? "0" : Request.QueryString["PlaceId"])';
         GetEvacuateList(PlaceId);
     ">
        <div ng-show="EvacuateList==null || EvacuateList.length==0">
            <h5 style="width:100%;text-align:center;">暂未上传应急疏散图</h5>
        </div>
        <div class="row image-list" style="margin-top:20px;margin-bottom:100px;" ng-repeat="x in EvacuateList">
            <img class="image-item space" style="display:inline-block;margin-left:10px;width:100%;" ng-src="{{x.FileInfo.FilePath}}"  data-preview-src="" data-preview-group="1" />
            <p style="width:100%;text-align:center;">{{x.Remark}}</p>
        </div>
      
    </div>
</div>
<div style="height:80px;">

</div>

@section js{

    <script src="~/Assets/js/libs/upload.js"></script>
    <script src="~/Assets/js/mui.zoom.js"></script>
    <script src="~/Assets/js/mui.previewimage.js"></script>
    <script src="~/Assets/js/pg/Emergency.js?v=@DateTime.Now.ToString("yyyyMMddHH")"></script>
    <script>

        mui.showLoading("正在加载..", "div");

        setTimeout(function () {
            mui.hideLoading();
            mui.previewImage();
        }, 1000);
    </script>
}
